import { Routes } from '@angular/router';

import { AdminLayoutComponent } from './layouts/admin/admin-layout.component';
import { AuthLayoutComponent } from './layouts/auth/auth-layout.component';

import { WizardComponent } from './wizard/wizard.component';
import { IntegrationBrowseComponent } from './integration-browse/integration-browse.component';

export const AppRoutes: Routes = [
    {
        path: '',
        redirectTo: 'pages/login',
        pathMatch: 'full',
    }, {
        path: '',
        component: AdminLayoutComponent,
        children: [
            {
                path: '',
                loadChildren: './dashboard/dashboard.module#DashboardModule'
            }, {
                path: '',
                loadChildren: './role-management/role-management.module#RoleManagementModule'
            }, {
                path: '',
                loadChildren: './org-management/org-management.module#OrgManagementModule'
            }, {
                path: '',
                loadChildren: './user-management/user-management.module#UserManagementModule'
            }, {
                path: '',
                loadChildren: './position-management/position-management.module#PositionManagementModule'
            }, {
                path: '',
                loadChildren: './privilege-management/privilege-management.module#PrivilegeManagementModule'
            }, {
                path: 'wizard',
                component: WizardComponent
            }, {
                path: 'integration-browse',
                component: IntegrationBrowseComponent
            }
        ]
    }, {
        path: '',
        component: AuthLayoutComponent,
        children: [{
            path: 'pages',
            loadChildren: './pages/pages.module#PagesModule'
        }]
    }
];
